import {readFileSync} from 'fs'
import {dirname, join} from 'path'
import DEV from '@/config/dev.js'

export package_json = 'package.json'

export default =>
  JSON.parse readFileSync(
    join(
      if DEV then dirname __dirname else __dirname
      package_json
    )
    'utf8'
  )
